package com.hca.training.zk.javabasic.Thread.SellTickat1;

public class Demo {
    public static void main(String[] arg0)
    {
        SellTicketDemoExtendThread st1=new SellTicketDemoExtendThread("窗口一 ：");
        SellTicketDemoExtendThread st2=new SellTicketDemoExtendThread("窗口二 ：");
        SellTicketDemoExtendThread st3=new SellTicketDemoExtendThread("窗口三：");
        //启动
//        st1.start();
//        st2.start();
//        st3.start();


        SellTicketDemoImpelRunnable sts1=new SellTicketDemoImpelRunnable();
        Thread t1=new Thread(sts1,"窗口1");
        Thread t2=new Thread(sts1,"窗口2");
        Thread t3=new Thread(sts1,"窗口3");
        t1.start();
        t2.start();
        t3.start();
    }
}
